package com.seedwill.common.service;

import com.seedwill.common.model.CompositeObject;
import com.seedwill.common.persistence.FilterContainer;
import com.seedwill.common.sao.IPageViewService;
import com.seedwill.common.view.IPagnationView;

/**
 * 基础泛型服务
 * 
 * @author kdyi
 *
 * @param <T>
 */
public interface IBaseService extends IPageViewService {
	
	public void create(Object obj) throws ServiceException;
	public void save(Object obj) throws ServiceException;
	public void save(Object obj, java.io.Serializable id) throws ServiceException;
	public void modify(Object obj) throws ServiceException;
	public void save(Object obj, boolean skipNull) throws ServiceException;
	public void save(Object obj, java.io.Serializable id, boolean skipNull) throws ServiceException;
	public void modify(Object obj, boolean skipNull) throws ServiceException;
	public void delete(Class clz, java.io.Serializable id) throws ServiceException;
	public void delete(String clzName, java.io.Serializable id) throws ServiceException;
	
	
	public void createEntity(CompositeObject obj) throws ServiceException;
	public void saveEntity(CompositeObject obj) throws ServiceException;
	public void modifyEntity(CompositeObject obj) throws ServiceException;
	public void deleteEntity(String schemHint, java.io.Serializable id) throws ServiceException;

}
